/*
 * Created Sat Nov 19 10:38:24 CST 2005 by MyEclipse Hibernate Tool.
 */
package e2q.di.domain.manage;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import e2q.web.orm.Persistent;

@Entity
@Table(name = "di_user")
public class User extends Persistent {
	// private Department department;

	private Long id;

	private Short locked = new Short((short) 0);

	private String loginId;

	private String loginPass;

	private String name;

	private String notes;

	private Short type = new Short((short) 0);

	@Id
	@GeneratedValue(generator = "pk")
	@Column(name = "userId")
	@GenericGenerator(name = "pk", strategy = "e2q.web.orm.IdGenerator")
	public Long getId() {
		return id;
	}

	@Column(name = "userLocked")
	public Short getLocked() {
		return locked;
	}

	@Column(name = "userLoginId")
	public String getLoginId() {
		return loginId;
	}

	@Column(name = "userLoginPass")
	public String getLoginPass() {
		return loginPass;
	}

	@Column(name = "userName")
	public String getName() {
		return name;
	}

	@Column(name = "userNotes")
	public String getNotes() {
		return notes;
	}

	@Column(name = "userType")
	public Short getType() {
		return type;
	}

	// public void setDepartment(Department department) {
	// this.department = department;
	// }

	public void setId(Long id) {
		this.id = id;
	}

	public void setLocked(Short locked) {
		this.locked = locked;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public void setLoginPass(String loginPass) {
		this.loginPass = loginPass;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public void setType(Short type) {
		this.type = type;
	}
}
